package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 整车配置约束规则
 * </p>
 *
 * @author XUQI
 * @since 2019-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_vehicle_config_constraint")
@ApiModel(value = "VehicleConfigConstraint对象", description = "整车配置约束规则")
public class VehicleConfigConstraint implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "配置版本")
    @TableField("CONFIG_VERSION")
    private String configVersion;

    @ApiModelProperty(value = "车型(861)")
    @TableField("PRODUCT_ID")
    private String productId;

    @ApiModelProperty(value = "前提")
    @TableField("PREMISE")
    private String premise;

    @ApiModelProperty(value = "运算符")
    @TableField("OPERATOR")
    private String operator;

    @ApiModelProperty(value = "结论")
    @TableField("CONCLUSION")
    private String conclusion;

    @ApiModelProperty(value = "描述")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "状态 1 启用 0禁用")
    @TableField("STATE")
    private String state;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "操作人")
    @TableField(value = "UPDATE_BY", fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "操作时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "版本号")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    //是否已处理
    private transient int isProcess = 0;
}
